<template>
  <!--info -->
  <a-card class="bg-secondary">
    <div class="flex justify-between items-center h-7">
      <div class="text-xl font-semibold flex-1 truncate text-primary">
        {{ store.currentSuit.mc || '套餐名称' }}
      </div>
      <div class="w-60 text-left">创建人： {{ store.currentSuit.cjrName || '-' }}</div>
    </div>
    <div class="flex justify-between items-center h-7">
      <div class="flex-1 truncate">
        <div v-if="templateType !== 4" class="mt-2 name text-sm text-gray-700">
          <!-- <div>
            <template v-if="store.currentSuit.enablePackagePricing">
              <span>套餐价 </span>
              <span>￥{{ store.currentSuit.tcPrice || 0 }}</span>
            </template>
            <template v-else>
              <span>明细价 </span>
              <span>￥{{ store.currentSuit.tcOriginalPrice || 0 }}</span>
            </template>
          </div> -->
        </div>
      </div>
      <div class="w-60 text-left">创建时间： {{ store.currentSuit.cjsj || '-' }}</div>
    </div>
  </a-card>
</template>
<script setup>
import useDoctorStore from '../workstation/store'

const store = useDoctorStore()
defineProps({
  templateType: {
    description: '模板类型 0-处置 1-处方 2-协定方 3-就诊套餐 4-病历',
    type: Number,
    default: null
  }
})
</script>
